import { KeyCode } from "cc";
import { EventMouse } from "cc";
/**
 *  * C
X
V
B
Escape
~
E
Q
SHIFT_LEFT
CTRL_LEFT
W|Up
A|Left
S|Down
D|Right
MOUSE_LEFT
MOUSE_RIGHT
 */
export let CC_KEY_CODE = {
    A: KeyCode.KEY_A,
    W: KeyCode.KEY_W,
    D: KeyCode.KEY_D,
    S: KeyCode.KEY_S,
    B: KeyCode.KEY_B,
    C: KeyCode.KEY_C,
    X: KeyCode.KEY_X,
    V: KeyCode.KEY_V,
    E: KeyCode.KEY_E,
    Q: KeyCode.KEY_Q,
    Z: KeyCode.KEY_Z,
    Space: KeyCode.SPACE,
    CTRL_LEFT: KeyCode.CTRL_LEFT,
    SHIFT_LEFT: KeyCode.SHIFT_LEFT,
    Up: KeyCode.ARROW_UP,
    Left: KeyCode.ARROW_LEFT,
    Down: KeyCode.ARROW_DOWN,
    Right: KeyCode.ARROW_RIGHT,
    MOUSE_LEFT: EventMouse.BUTTON_LEFT,
    MOUSE_RIGHT: EventMouse.BUTTON_RIGHT,

    Enter: KeyCode.ENTER,
    NumEnter: KeyCode.NUM_ENTER,
    Escape: KeyCode.ESCAPE,
    Esc: KeyCode.ESCAPE,
    PERIOD: KeyCode.PERIOD,
    COMMA: KeyCode.COMMA,

    BACKSPACE: KeyCode.BACKSPACE,

    M: KeyCode.KEY_M,
    N: KeyCode.KEY_N,

    Del: KeyCode.DELETE,
    MOUSE_MIDDLE: EventMouse.BUTTON_MIDDLE,
    MOUSE_4: EventMouse.BUTTON_4,
    MOUSE_5: EventMouse.BUTTON_5,
    MOUSE_6: EventMouse.BUTTON_6,
    MOUSE_7: EventMouse.BUTTON_7,
    MOUSE_8: EventMouse.BUTTON_8,

    ALT_LEFT: KeyCode.ALT_LEFT,
}
